export default {
    data(){
       return{
           screenHeight: 0,
           tableHeight: 0,
           header: 60
       }
    },
    mounted() {
        this.screenHeight = document.body.clientHeight
        this.onResize ({
            w: document.body.clientWidth,
            h: document.body.clientHeight
        });
        window.onresize = () => {
            this.onResize({
                w: document.body.clientWidth,
                h: document.body.clientHeight
            })
        }
    },
    methods:{
        onResize (e) {
            this.screenHeight = e.h
            this.tableHeight = this.screenHeight - this.header

        }
    }
}